Assignment 9 JavaScript