Tag - sum of digits of a number in javascript