Added a cdn for typeahead
Moving auth to javascript