Added support for trying to resolve module id using require.js when available