port store.js to coffescript and change handlebars file extensions to be .hbs