javaScript Functions and Objects homework