A demo showing Javascript Remoting patterns in Visualforce/Apex