fix foundation js init