Tic Tac Toe JS game please review

The Task was to build a Tic Tac Toe Javascript.
I have to say as a beginner a struggled with that , Can you please look at my project
and maybe look over the Code and tell me why the Min Max Algorithm does not work
And give me some Tips to become better . (I am a beginner and because of other activities I study when ever I can)