Just fixed up the template.js file so it is easier to read.