JavaScript notes part 2