It is on our road map to add an intents javascript API, but it’s not available yet.
However, if you create a link which has a href pointing to an intent url, then widgets.js will send you back events because it listens to all links which point to to twitter intents. Here’s a jsbin to illustrate it: http://jsbin.com/duvaco/2/edit?html,js,console,output
Note: if you trigger the click programmatically, browser will usually block it by default unless the action was initiated by the user.