You changed this from
```js
var URL = URL || webkitURL
```
right?

Now it depends on `this` being the global context.  Why not:
```js
if (typeof URL === 'undefined' && typeof webkitURL !== 'undefined') {
   var URL = webkitURL;
}
```