better way to find npm modules + remove duplicate code
initial jade support (#48)