Moved the JavaScript heredoc up with the HTML one.