Create OO Javascript example