There is a movie that attempts to do it. The Philadelphia Experiment is excellent and gives some insight on how it could be done. Politics in 1945 were just as deceiving as today. Our Government thought they had assurance from the Emperor of Japan. Unfortunately the Japanese Military actually controlled him. There were many mistakes made and early warnings were ignored out of arrogance and ignorance. More than 2300 sailors and military and almost the entire Pacific fleet was wiped out in 2 hours. To prevent Pearl Harbor you would have to change the mindset of the world in 1940-41.