web/javascript.js: Fix more JSHint warnings.
temp22
CID 965921 Operands don't affect result.
Remove unneeded do while loops.
Get rid of comma in delete statements.
Cleanup.