Entity system for node.js