console.log to alert