switched js to heredoc output
updated html template