homework 4 js2