Fix scoping thing with js.