Fixed XHR request issue

Fixed the issue you guys were having in class.