Add browser tests.
Merge pull request #2 from eiriksm/browser

Add browser tests.