javascript create array from range