FIXED: middleware example, see issue ##114

Replaced middlewares.push() with middlewares.unshift() since with push() the middleware won't run at all.