Use better approach for autocomplete

- Restored `sql-hint.js` to maintainer's version. And perform necessary
checks before calling autocomplete.
- Autocomplete on `inputRead` instead of `change` event.

Signed-off-by: Nisarg Jhaveri <nisarg.jhaveri@research.iiit.ac.in>