concentrate all html to a javascript template