Made Model.js work with node.