stole scope from high perf js