How to Split a Number into an Array in JavaScript