DOCS-1595 adding table mapping helpers to their javascript equivalents

Signed-off-by: Sam Kleinman <samk@10gen.com>
DOCS-1595: syntax fixes