javascript homework