Taking a page out of science fiction and Hollywood scripts, US space agency aims to prevent collision with Earth.