Fixed ready state so it won't be set to success until the request finishes

This fixes a bug where jQuery 1.3.2 polls the xhr object every 13 milliseconds and it was triggering a request success before we were actually done.