refactor browser handler
Merge pull request #1 from prezi/browser

refactor browser handler