I need <script> in header to define a JavaScript variable (var dates={...};) which is to be used from a .js script.
It should be preferably in header and not inside jQuery(function($){...}) not to hide the variable from using it by my .js script.
Can it be done in any other way than modifying the layout?