javascript homework 2