Update Grunt js scripts
Update console shim using @nicbell's input
Add example code and tidy up other parts of file