Use jQuery to simplify event binding in example - Fix #369