Never alert

window.alert is inappropriate for library code