I seem to have come across a problem regarding javascript and using widgets (im using Yesod 0.7.3). I add javascript to widgets normally with addJulius, however when they get added into the head of the website, the tags that enclose the javascript code are<div>
&lt;script&gt;</div><div><br></div><div>Instead of</div><div><br></div><div>&lt;script type=&quot;text/javascript&quot;&gt;</div><div><br></div><div>I also think this is the reason why the javascript is not executing on my website</div>
<div><br></div><div>Also unless I am missing something would it be possible to implement a function like addJulius but instead of adding it to the script to the &lt;head&gt; html page, the javascript gets concatenated into a .js file (which is returned by some route).</div>
<div><br></div><div>Thanks</div>