Fix bugs with search.js, made it compile.
Add indexing scripts, add test script for JS search engine (stub).