Fixed some issues with the typeahead and the jshints