Add hacky support for chrome. Fixes issue #1