Let's split this out to make the logic a bit clearer:

```js
var eventMap = (function() {
    if ( "MSPointerEvent" in window ) {
        return { ... };
    }

    return { ... };
})();
```