Fixes jslint errors in MainPanel