JavaScript notes