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