Updated to latest Javascript API
Merge branch 'feature/new-api'
Merge branch 'master' into production