Update loadMiddleware.js