Handling the case when the JSON response is null during an error when using the js client request method.
Merge pull request #26 from timothyarmstrong/null_json_response

Handling the case when the JSON response is null during an error