oo javascript programming notes