fix some invalid html
screenshots js: simplify, replace Array() with array literal