Replace JS mouse events with JQ bindings

Now touch events are supported, and they are bound at the same time as
the mouse events. However, more needs to be done as touch still scrolls
the canvas.