add location.href fallback for safari