Just use target="_blank" instead of JavaScript