Todo on javascript