JavaScript homework for week 2