js to support opening in new window.