for loop js