update to use new xhr methods
Merge branch 'master' into gh-pages