doc fixes, moved to using CommonJS httpclient in index.js