class system for nodejs