Refactored requirejs config template.