All of the javascript variables in the header template are dynamic and need to be created at execution time, so we can't put them into a staic .js.