cleaning up workflow visualization code with jslint