The Fourth of July is synonymous with fireworks displays, but before all the bright colors and thunderous booms, scientists are hard at work behind the scenes making each firework display its best.