Break out the ajax get call to a method