changed from Alert to console.log