Adding JavaScript OOP homework