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.