for loop js exercise