Fixed bug in updating appenders of instantiated loggers.

Also fixed jshint failures.