modifed a couple of the ajax functions to point to the correct domain