JavaScript Homework 2 - completed