move search from block.js to search.js
Merge pull request #785 from waterbearlang/extract_search_from_blocks

move search from block.js to search.js