Completed exercise in objects in javascript