As of now I\'m using like this for javascript
<
My solution for this was to have an empty div using the bootstrap hidden class style at the top of the body:
And then to test it later with Javascript and append it to the head if the div is visible: