html script templates, new functions in search.js

replacing static html code with script templates,
new functions in search.js for consuming json examples,
css and bootstrap styling