make typeahead work with <textarea>, TODO: unit tests