fixes issues with requirejs race conditions