isolate js scopes