Use dodge.data_class instead of collections.namedtuple
Fix scoping for methods in node.js backend