Also not obvious (we need code standards :/) but the files have followed a specific structure:

selfTest()
clickHandlers[]
otherFunctions()

self test reporting
initialization code

Of those, mostly I care that we separate the functions from the init code, aside from the clickHandlers definition (which is practically made of functions). This would be initialization code, so would go near the bottom. 

I need to refactor these files to properly unload handlers, though, so I don't mind doing the restructure too at that time.