Use require.js to access the code instead of having it in the spec.js file

This was actually new to me, found it on http://dailyjs.com/2011/12/08/mocha/