Template refactoring; JAK.Template now works standalone