Apparently form builder adds info improperly to the the head section.
It puts statements like;
inside style statements like;
<style type="text/css" media="all">
The fix is to move these script statements outside the style statements.