js assignment 7