js while loop exercise