fix problem with foundation loading at end of body