Updated wrapper script
- Allow to create a sandbox which simulates the global/window scope
- Allow arbitrary code in preinit instead of a function
- Removed anonymous function wrapping the define() call