fixed the way I was require.js to load libraries