More rigorous linting

This PR activates the `--jslint_error=all` flag to `gjslint` and fixes all the problems it finds.