Building Waterfall Charts in JS