Replace inline JS bindings with jQuery event