added error checking for lost connection and facebook logout. Also added modal boxes to show user the errors.
removed simple modal js