Changed script load order.
Changed run_at to "document_end"
Made changes :
Added setEvents() function.
Replaced debug() with setDebug().
Removed some developer crap.
Certain elements don't toggle but go away forever.