https://msdn.microsoft.com/en-us/library/ms462947(v=office.12).aspx

 

SharePoint JS Link Display Template

http://www.learningsharepoint.com/2013/03/31/uploading-javascript-js-files-as-javascript-display-template-in-sharepoint-2013/