Fix nested function problem in js-log-group-function.