added some javascript examples