refactor jade files