Autocompletion fixes and jQuery-less refactor.
Merge pull request #358 from Palid/autocomplete

Autocompletion fixes and jQuery-less refactor.