s/winston/loge/g and modernize some of the jslint