Update public/javascript/d3/vert_bars.js

Edited update function to work with socket.io.