Closes #1. Made Model.js work with nodejs.