EJS template engine

I’m doing a node.js project and I’ve an ejs template file which further uses templates for header and footer.

template.ejs looks like this:

<%- include(header) %>
main html body
<%- include(footer) %>

<script type='text/javascript'>
...
...
...
</script>

when I run the server, the script embedded between the script tags becomes clearly visible. How do I hide this part from the page rendered by the node server.