Added console.log function to store the data in the browser console.