use heredoc syntax for javascript code