javascript create array from range of numbers