Move all scripts back into head (from inline) until all view scripts can be converted to use inlineScript instead of direct embedding of JS
CS fix