Update ajax.js

IE6 do only support str.charAt(n), but not str[n]