use json-stringify-safe

This means that `console.log(window)` doesn't blow up.

It is however very long in the console ;)