Fixed an error involving IE7/IE8 and legacy versions of jQuery (Fixes #402)