using jsandbox to execute code blocks