added javascript examples