('chrome' in window) safety checks

otherwise hoses ff
Merge pull request #56 from forresto/patch-1

('chrome' in window) safety checks