A cross-browser event utilities script