fix badge's js test