Console.save snippet

Extend the console object to add a save function to save javascript objects to json files.