Replace 'console.log' with 'alert'.