Make safari compatible

I'm assuming that `chrome` is a global variable that's also accessible via `this.chrome`, I don't have Chrome available right now to check.
I think `window.chrome` is a bit more idiomatic.... just in case the whole logic is wrapped, and `this` no longer points to `window`