script.js: added hover handler