Do we know if the url will always contain `://` (I'd assume it will, but just want to verify) because if it doesn't then `indexOf` will return -1 and the following substring calculation won't be right.