Update sandbox.js

(Temporary ?) bug fix for Safari