Javascript homework 1