update js files
use d3 dispatch to link the charts