Cheanged to dajax. The js function needs to be changed.