made pointerLock more cross-browser compatible