I'd rather bring this function into graph.js, and put `highlight` on `global` so it can access the values it needs.