Update JavaScript interface according to straw-ios.js#v0.2.0