Add middleware + component.js