[added] module output with {module:true} option

- can now output templates as js modules
- added test coverage, run with `npm test`