minor improvements

-added third parameter to addEventListener() (useCapture became optional only in more recent versions of the major browsers)
-changed ´if("property" in element === true)´ to ´if(element.property)´