for n in range javascript