fix fireEventWithJS