Cleanup of sidebar and JS glitches