javascript array from number range