timeout should be set after open() in ajax.js