Tiny template html code in javascript