Backport of foundation rails for IE8 backwords compatibility