Fixing js sandboxing