improvement fireEventWithJS with getAttributeClasss()