diff --git a/js/runner.go b/js/runner.go
index <HASH>..<HASH> 100644
--- a/js/runner.go
+++ b/js/runner.go
@@ -263,11 +263,10 @@ func (r *Runner) newVU(idLocal, idGlobal uint64, samplesOut chan<- stats.SampleC
 
 	// This is here mostly so if someone tries they get a nice message
 	// instead of "Value is not an object: undefined  ..."
-	common.BindToGlobal(vu.Runtime, map[string]interface{}{
-		"open": func() {
+	_ = vu.Runtime.GlobalObject().Set("open",
+		func() {
 			common.Throw(vu.Runtime, errors.New(openCantBeUsedOutsideInitContextMsg))
-		},
-	})
+		})
 
 	return vu, nil
 }
Remove one unneeded usage of common.BindToGlobal