URL is not available on iOS' webview so use the prefixed window.webkitURL, when necessary.

Preferably this check would only happen once but putting urlClass on 'this' feels nasty.

This could be tested but I'm editing in the browser (quick submission here). Feel free to take this and implement in a better way.

Hope it helps.

FYA: @adambom