JavaScript notes part 1