Compatibility with jQuery 1.9.1

Kind of safe hack to add compatibility with jQuery 1.9.1 without losing IE6 functionality.