Tag - sum array javascript