change tasks to compile jade pages to html and jade templates to javscript functions