Trying to clean up javascript.
Continuing to clean up javascript.
Cleaning up javascript continues.. refactoring.