Fix intermittent javascript PR script failures.