rm'd obsolete spice.js and added template.js