Simplified JS http/https external link code.