Fixed for Firefox.
Merge pull request #1 from j201/master

Fixed for Firefox.