Return a message for every autocompletion result, whether it was successful or failed.
Parse the json output of the autocompletion script and check if everything is fine before sending the response to the site.
Send the correct filename to the autocompleter for cpp and c files.