Racer.js middleware