Many minor tidy-ups, including CONTRIBUTING.md notes on JS