Update PR #1140 for pjax/turbolinks friendly topbar

See https://github.com/zurb/foundation/pull/1140
based on @bratsche work