The obvious answer is that hurricane sandy stopped his momentum and turned the race.
Sounds like it may have also been some of the things that not many people were talking about. Women's right in particular had a much larger effect than expected and the minority, youth and latio vote were huge for Obama.