Having viewed the code by the CRX addon I'd like to ask -
Was all or part of the program written in another language and compiled to Javascript?
My Javascript is not the good but it looks that way to me, or perhaps was constructed from some table driven system.