add better check for response.coffee xhr