replaced alert with console.log

Wouldn't you want it to be printing to the console?