Added escaping for JSON response
Added NULL check for http headers. Ajax Request was not working previously if headers are NULL
Modified .gitignore