Update scoping.js

Fixed callback function.