Fixes #3

This fixes an error with `node-theseus` not liking the top-level return statement in `app.js` by wrapping it all in a function.