js corrections for cicle, tired