Added data api. Fixing up the ajax url.