Fix js scope.