Removed console.log debugging line