Simple JavaScript code sandboxing