js loop hw