Fixing AJAX problem in some old browsers