Fix JS test for external links