Added demo OOP in Javascript APIs