bugfix coffee-template assumed document existed
build