add solr JS library and fix index DB shim issue