Js fixes
Merge branch 'refs/heads/master' into gh-pages