fix broken JS assumptions in LeftAndMain.js