javascript lab, 2nd try