Fixed an error in openLink.js