Minor bug fixes: few var declarations prevented TZP to be loaded in Firefox 3.0

This patch will make TZP loadable in Firefox 3.0 (Windows). I haven't went through all the test cases, but some worked and some did not.

Maybe I would just bump the minimal version to 3.6.