jQuery: trigger now JSDoc'd and typings

brought in line with documentation.  Also added test suite.
jQuery: uncommented tests

realised they could be used as long as param1 and param2 made optional
Merge pull request #1698 from johnnyreilly/master

jQuery: trigger now JSDoc'd and typings