correction bugs js