[#106] revrite search.js to coffescript