Change console.log to alert