The foam is used to compensate for very minor uneveness on the top surface of your stand to avoid cracking the glass. As RayAllen said, you can get it at Home Depot or Lowes. It's used for insulation on homes.

Rick