Define ol.pointer.PointerEvent.createMouseEvent before using it

Fixes #1961
Merge pull request #1962 from fredj/1961

Define ol.pointer.PointerEvent.createMouseEvent before using it