Fix for deprecated call in jQuery 1.9 and higher

jonathaneit was so kind to provide a fix for compatiblity with jQuery 1.9 and higher replacing a deprecated function call. Please accept this pull request so it works again in 1.9 and higher, thanks! :+1: