Adding callback with error if server doesn't pass back a json response