inlined the mocha grid view, as development of it has stalled and it had a major bug