fix js error capturer issue