Change console.logs to alers