refactor standalone jade example