Alert replaced with console.log.