use Dygraph.log in dygraphs.js