Fix less-middleware instantiation

Instantiate less-middleware object as expected in 1.0.x versions