javaacript changed to Object Oriented