Firefox compatibility
Merge pull request #5 from jbenowitz/master

Firefox compatibility