all JS code samples tested, fixed
Merge branch 'master' of github.com:cloudant-labs/slate