Create template.js

Adds the template to solve the challenge