Updating window.open override method with return statement.