console.log changed into alert()