fix parse error in js response due to illegal comments