java script 2nd homework