Catch mouse events in javascript
Clicking on image moves point