Clean up code by removing console.log messages. #537