a angularjs directive for github-like autocomplete