fixes bug with files used with require.js