I changed the line:
var commentbox = $("form[action$=wp-comments.php] textarea:visible");
to:
var commentbox = $("#commentform textarea:visible");
… and that work well on my wordpress, but I have no idea if this will work on every installation and with every theme.
Hope it helps anyway.