refactor search.js so can render quick
add unit test for suggest api
more changes