replace console.log with alert