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

Signed-off-by: Adam <a.j.winkworth@gmail.com>
Fix JSHint Errors.
Output should pass JSHint Better.
Merge pull request #224 from ajwinkworth/master

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