Fix #23. Slightly index.js refactor.

Add:
    static/js/index.js
        -Fix #23.
        -Move callbacks to an function that gets executed on definition, for
        more aesthetically modular code.

Rem:
    static/js/lib/typeahead.bundle.min.js
        -Remove the `typeahead` plugin, which is not longer used for
        autocompletion.