JS event handlers moved from html to js-file.