move logic of search suggestion API to azuresearch.js
externalize the actual search to azure inside azuresearch file