For more information about the philosophy behind the new approach, see http://24ways.org/2012/a-harder-working-class/
Doesn't use jQuery, slightly easier to understand, uses a media query for max-width, rather than JS events making it faster to respond.