js and foundation issues