An implementation of the Core-Sandbox-Module pattern for JS