IOS-670 - Add javascript API methods for Trigger.io