Minor change to work around a jQuery 1.4.2 bug for legacy users.