Homework Using Object in Javascript