hive off javascript into own file
Merge branch 'feature/pluggable-templating'