An expressjs middleware for EPM