live updates to a javascript plot with socket io