Added doc string to JS file, cleaned up, no major changes.