Switch to console.log from alert