Rezolved issues with script loading with requirejs