Swap the order of how the XHR requests are set up.
fix JSHint errors
Merge pull request #117 from mozilla/issue_116-session-ie8-win7

Swap the order of how the XHR objects are created