Converted the autocompletion script to be inline for the purpose of accepting data in the template from the server