Made the ajax stuff happen with JQuery