Well, you make a good point that arguably the clickhandlers[] var should go up top per Crockford. But specifically, I meant that addEventListener() shouldn't be inline with the functions.

re: unloading, you are here, yes. None of my tests do so, because I didn't think it was necessary. Later on, I read the issue posted by the Gaia team regarding closures attached to the global objects outside the iframe and realized I was wrong.