Fix for newer jQuery versions (a fix which has already been made in the original repo).