Class system for node and browser