Fix index search, split base.js to index-view.js, leaf-common.js
rename file