Fix Touch position in canvas with margins or padding

The mouse position in an element is measured from the top left corner. When a margin or padding is used this starts outside the drawable area of the canvas. This needs to be taken into account.
Restructure added redundancy
Update quintus_touch.js
Merge pull request #121 from mpkorstanje/patch-4

Fix Touch position in canvas with padding