SNIPPET: getting the aln from an ajax call