Removing unnecessary console.logs