Various javascript examples