Javascript apps homework 1