finish JS part