js assignment 7pt2