If you want it to actually run in the browser then ClojureScript is probably what you want.
I found an example of a game created in it: https://deque.blog/2017/03/28/building-a-clojurescript-game-... ( Source: https://github.com/QuentinDuval/triboard/tree/master/src/clj... ) Seems fitting that it focuses on AI.