Refactor Layout.jade