it would help with links to your website and the link where you got the AJAX from then we can look at it for more info on how to fix it for you.
i'm thinking that the AJAX that your trying to install is out of date and thats why your coming across the errors, or that you have not installed it...