Remove console.log lines and two alerts