js apps homework 2