Update ajax to not throw errors in IE8