Templatedir

Realized #38

Add option `-t, --templateDir` which supports defining a relative or an absolute templates directory.

Based on PR just_parse.
this line was probably removed by mistake, making the js file incorrect.