log js errors only if logJsErrors is defined in config