Refactor tools.js into a memory controller object and use the SideMenuWidget in the sidebar.