updating towards danvk: part 1

until dygraph-utils.js