Update for JavaScript SDK v0.8.0