An angularjs directive for github-like autocomplete