Moving out js from search.html

Signed-off-by: Braiam Peguero <braiamp@gmail.com>