Replaced prototype ajax with jquery ajax