Update diff.js

add exports