Issue #176 - Put <script> in views into scripts section to fix JS errors