fixes issues with requirejs race conditions
Merge pull request #24 from njrD/fix-require-js

fixes issues with requirejs race conditions