js oop homework