Add function for getting the ajax url