My understanding of good javascript-ing is to put this at the end of the DOM somewhere (say, in `{% block scriptin %}`).

Likewise there's a block for stylesheets: `{% block stylein %}`. `morehead` should be reserved for things like `<meta>` tags and the like.