Support class definitions on node.js backend