added JSON.stringify on xhr post send(data)