Adding typeadhead.js api