Update dygraph-internal.externs.js

detachEvent takes a function not an object (as the param name suggests). This can create compile conflicts.