console.log upgrade based on Remy Sharp's post.