Add model as global variable

Since Meteor 0.6.0 all files are variable scoped. This means that
the old way of declaring the variable in coffeescript won't work
and it has to be attached to the global namespace, which is `window`
and `exports` for browser and node.js respectively.