convert to boolean fireEventWithJS