Update $scope.input.text after autocompletion