finish js in stats