Easier way for creating classes in Node.js