fix panel js