Add CodeEval Multiples of a Number challenge solution in JS