A tokenising input directive for AngularJS