Removing Unwanted console.log fn