an exercise using forloops in jquery