Added require.defined() to replicate require.js