Improve link external using JavaScript