For more Information refer below article:
http://blog.repsaj.nl/index.php/2014/07/sp2013-loading-scripts-using-requirejs/
http://www.codeproject.com/Articles/628236/Single-Reference-JavaScript-Pattern-for-SharePoint
For more Information refer below article:
http://blog.repsaj.nl/index.php/2014/07/sp2013-loading-scripts-using-requirejs/
http://www.codeproject.com/Articles/628236/Single-Reference-JavaScript-Pattern-for-SharePoint