Implemented javascript part for autocompletion and added profile which enables
autocompletion.