Fixing illegal invocation error on setRequestHeader. Fixing GET timeout issue.