Update core.js

Add alter arguments as third argument of "afterChange" hook.