Got rid of alerts

Changed all alerts to console.log.