Adding JS fix for table display issue