Samples 
http://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a 
 