Fixed js error (ty FF)