Add dependencies to template.js