Create template.js

Initial commit