Minor fix to use term slugs rather than names.
Updated ajax handler to reflect previous changes.
Merge pull request #2 from fsquared-uk/master

Fix to use term slugs correctly