Javascript OOP Exam prep