Middleware-inspired JavaScript component for sequencing methods.