Close #157: pack templates into a JS source file