Fix not adding sourceId to "dummy" inserted data, which caused NaN to end up in SVG lines (which throws exception in WebKit).
Reformat so can more easily set breakpoints.