Compleated js exercise8