Wrap callback functions
When passing callback functions to chrome, make sure the arguments are copied to sandbox on callback