Fix Javascript tests after commit f55771af6429.