fixed all the ajax calls to http