Improved requirejs script ordering