jQuery: added typing for fn (previously any)

Will perform Pull Request and see if CI reveals any impact on jQuery plug-ins.