update d3.js and add width method to timeline chart