Revert "Put js code for autocompleter outside of default.js"

This reverts commit 35ea9e796e752f11b8d56935fe62cfe47f441dc6.