included changes to index and stacksearch.js