new more explicit function for initial get locations ajax call