adding lots of comments, changed typeAhead to type-ahead in html