JS

Adding features to JS, minor corrections to other files.