OOP for NodeJS with magic