revised JS
Merge branch 'master' into gh-pages