remove layouts when dealing with XHR requests
Merge pull request #80 from optopus/fix-xhr-requests

remove layouts when dealing with XHR requests