Code reordering
Code reordering

This commit (despite the fearsome looking diff) merely reorders code within dump.js and improves some comments (JSDoc and otherwise).  No actual code changes.

NeilFraser/CodeCity,google/CodeCity,google/CodeCity,NeilFraser/CodeCity,NeilFraser/CodeCity,google/CodeCity,google/CodeCity,NeilFraser/CodeCity