SyntaxFix
Write A Post
Hire A Developer
Questions
wrap your entire code block in this:
//<![CDATA[ //code here //]]>
also make sure to specify the type of script to be text/javascript
try that and let me know how it goes