Fix for ios 7.0.4(safari) where downloadWindows.focus is undefined.