Chnage initPointerEvent to use a simple regex to replace "pointerevent" with "MSPointerEvent"