It was from the time when synchronous requests in firefox with the cors headers were not going through. ([read more](http://stackoverflow.com/questions/16668386/cors-synchronous-requests-not-working-in-firefox?rq=1)) 

I think it should be resolved now because I remember fixing it, but I would like to leave this in just in case.