Update foundation

The new foundation version has a built-in feature that we need (close modals with `esc`) and also some interesting bug fixes.