Hello again,
After a few hours testing, I think I found the culprit for the -1 response codes. In my case, it was a problem with same-origin policy. I find it out looking at the browser console ouput. Now I am testing with localhost requests and it seems to work fine. Now I am going to set my remote server to accept cross-domain petitions.