dygraph script for export