[javascript] Check if an element has event listener on it. No jQuery