fix js error in mediabox