turn to min version javascript