At one point I was using the [pipeline function](http://swannodette.github.io/mori/#pipeline) and I just followed that example from the docs.