Set "this" to the Dygraph object in all callbacks