changes to javascript exercise 2