better javascript for visualization of flow table