fixed bug with window.open failing without options parameter