Fix to support FireFox 33+

Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=996053