Confirmed. The SCRIPT element with string definitions comes before doctype, which results in defaulting to other doctype, and breaks the theme.
I’d suggest using jQuery queuing, ie set the variables in a $(document).ready()
call, and initialize the functions on $(window).load()
, which happens later in the process.