added autocomplete. added css/jquery-ui.css. fixed some bugs

Added autocomplete. As needed to do this, also added css/jquery-ui.css
to handle styling.

Fixed minor bugs with utils and with templates.