Javascript code for detecting if someone is using an iOS or Android device or browser, also combining a URL redirect.