Template seperation

moved mustache templates to templates.js