compleated js exercise5