basic javascript examples