Extract tart.js and use update sequence numbers
Parameterize minimal dispatch function