Assignment 8 javascript

Assignment 8