update js code for the jekyll search sample page