Extended js docs with share() function
Merge branch 'master' into wip