added IE comptability for ajax