Console.save snippet

Extend the console object to add a save function to save javascript
objects to json files.
Reorder parameters
update site for console.save