organize JS code blocks using vector clocks