adding support for window.devicePixelRatio

Firefox 23 updates window.devicePixelRatio when zooming; Chrome 29 does
not. Chrome 31 does, but that's not stable yet.