Diff with function.js to unify them