Use console.log instead of alert for repl.it