update diff.js