Moved unload() to separate JavaScript module and adjusted the formatting of the modules, removing unnecessary functionality.