Use console.log instead of window.alert