Applied JS styleguide.
Applied JS styleguide
Applied JS styleguide
Applied the previously missed parts of the styleguide
Added comment about "record"
Added comment about "record"