get the ajax endpoints setup and working