Try to fix tab-changing Javascript.