Autocompletion fixes and jQuery-less refactor.