Try removing the script from the question source and place it at the end of template.js
Remove the opening script tag:And the closing script tag:
Remove the opening script tag:
<script charset="utf-8" type="text/javascript">
</script>