added js snippets to html
added smarty snippets