Js OOP homework