Remove "with", strict mode, rmv unused vars, and other JSLint-inspired changes