Takes legacy inline JS (i.e. "onclick" and "href='javascript:...'") and creates event handler(s) to be run around the inlined code.