Updating d3 library with javascript file