move build-related code to lib/build.js.
use $el instead of hardcoding #search in search.js.