refactoring, extracting js from jade file
extracting js from jade
putting js into layout jade