Changed alerts back to console.logs