Add javascript examples.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>