Removing console.log line and empty lines