Fix bug in modals showing in background and revert Foundations gem (5.4.4.0 is broken)