fixed bug where require.js was returning a string instead of a module's object