Add Firefox compatibility.
Merge pull request #9 from toabi/firefox

Add Firefox compatibility