-moved javascript code from survey.jsp to resources/js/autocomplete.js