javascript array from range