Tincan JavaScript API