Make PointerEvent.js standalone

* Define vs object if necessary
* Replaced called to util.isFunction() to typeof ... === "function"