Changed console.log to an alert.