jQuery: trigger now JSDoc'd and typings

brought in line with documentation.  Also added test suite.