A try for object oriented programming style javascript