Extended js docs with share() function