finished structuring javascript notes