Began adding documentation to JS to help with refactor of code.
Removed commented out code.