Fixed issue when using custom RequireJS loader
Merge pull request #374 from zaggino/master

Fixed issue when using custom RequireJS loader