Minor fixes to the javascript
Minor fixes to the javascript

- add a `var` for strict mode
- set `TRIP_END` in the plugin so that we can listen to it. This should really
  be moved into the plugin instead.
- distinguish between `'clicked'` and `'triggered'`. I have not yet been able
  to trigger `'triggered'` but thought it might be useful while experimenting
  with swiping versus choosing actions.

e-mission/e-mission-phone,e-mission/e-mission-phone,shankari/e-mission-phone,shankari/e-mission-phone,e-mission/e-mission-phone,shankari/e-mission-phone,shankari/e-mission-phone,e-mission/e-mission-phone