Fixed window.open for firefox