fix typos in the front end ajax calls