In the last version of bootstrap there's a set of helper classes for this kind of stuff. We probably need to update our version of bootstrap, but I would use a css-only solution rather than a js-based one.
See http://getbootstrap.com/css/#responsive-utilities