Fixed the ajax call to the server