keeping foundation in js