Update sandbox.js

The listener is passed by argument