add support for Firefox, thanks @unclejack