Fix to support FireFox 33+

Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=996053
Merge pull request #2 from apptaro/master

Fix to support FireFox 33+