Yikes - we were adding JS files to the page every time the topbar reloaded. That is obviously not needed
Use HordeCore, which does all this for us already