OOP based functionality for JavaScript and Node.js