Switch to on() for JS event delegation, rather than deprecated live()

Fixes #63

Props @mecanographik for an initial patch