rearrange jade file structure for header and footer