Index Page with todo Function javascript