removed the remaining helper functions from viz.js