Update autocomplete.js

All request type: "GET", else error with post query in my project.