Compile JADE templates as Javascript if the output filename ends in JS.

Compile JADE templates as Javascript if the output filename ends in ".js".
This will assist people to use them as client side javascript templates in 
backbone, jquery etc

Usage: outputHtml = Templates\["TemplateName"\](Locals);

TemplateName = filename with extra "." converted to _.

Signed-off-by: Adam <a.j.winkworth@gmail.com>