What you're trying to do is not possible.
#include
is processed
on the server, whereas Javascript is processed
on the client,
after your page has executed and sent the response.
You can't use code running on the client to modify what happened on the server to generate the page containing the client-side code!
You'll need to find a different way to achieve your requirements. For example, you could use jQuery's
.load()[
^] or
ajax()[
^] methods to load content from the server on demand.