Update JavaScript interfaces (succeed, fail) according to straw-ios.js#v0.2.0