modified to find require.js on node_modules path