main js clean up and tooltips