moved require twbs3 and typeahead to init