Replaced YUI ajax with jQuery ajax functions