changed alert to console.log

changed alert to console.log