replace console.log with an alert