fix js error from player on some pages