Fixed setDriver resolution when using require.js