JS OOP homework