Make ng-typeahead safe form js  minfy