Updated middleware.js formatting as per .editorconfig settings