Adapted to work with curl.js

Just made the minimum changes necessary to get it working, code based on that from curl.js/loader/cjsm11.js

Caveat: only tested with a coffeescript doing a basic console.log 'Coffee Made'