homework for js&dom