TODO: end Jade template and integration