Demonstration of OOP in Javascript