Added samples to demonstrate nodejs API usage