Flashforward Showrunner Mark Gugenheim revealed how the show would have ended in this interview: Basically, the bad guys of the series had experienced so many flashforwards that they had foreseen a global calamity, so they invented a way to "leapfrog" human consciousness to the future, so that humans wouldn't experience the calamity. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.