Brief JavaScript notes