split into files, added google closure minified version, with template included inline