Load partials via Lift and define a global variable callback function