adding duplicate assignment back into isSecureUrl to handle IE