Templating js file