update event handling to support cocoon js

pageX, pageY, scrollX, and scrollY, are not usable inside of cocoon js. Using clientX and clientY. Probably needs some tweaking but good enough to work with for now.