some javascript examples