Now json exception listener only works if the request is XMLHTTPRequest
Merge pull request #41 from kreta-io/improve/json-exception-listener

Now json exception listener only works if the request is XMLHTTPRequest