Incomplete port of stagexl workflow to js