Fixed paths.
Centralised template.js. Will need to modularize it later. The Bakery project website is currently broken by this.