More JS fixes.
Merge branch 'master' into dimenovels.org