Improving documentation to JS scripts. Minor changes