oop javascript changes