Parse responses based on the type of the response, not ajaxDataType

- prevents bug where WS messages wouldn't be parsed with JSONP enabled

#2768
Test to verify that WebSockets work with JSONP forced by the JS client

#2768