Clean up topbar js formatting.