Attempted to use requirejs

I tried to integrate requirejs for the module definition and the
jasmine tests but it's not quite working for some reason.

I'll continue tomorrow.