I know this is your personal lib, so I won't say anything about code style, but I guess you should add a new line here.
Also, because this is will end up in Firefox code base, I was wondering if we have a policy about 3rd party js code that we integrate in Firefox?