Fixed some typo.
Workaround for missing document.location inside child window in Windows Chrome.