Update template.js

Change on number of version from traverse