Issue #2244975 by quicksketch: Compatibility with jQuery 1.9+ (use of $.fn.attr).