OOP EXAM, javascript functions, javascript using objects