index.html: use jquery event binding instead of inline js