ECMAScript: evaluating onclick, onsubmit etc. done in the right way.