Hey guys,
I’ve been working on game AI for a while now and ended up implementing a lightweight and easy to use library for Decision Making & State Machines called Ego. You can find it here. It has support for hierarchical state machines as well. You may find it interesting if you’re working on a JS game AI as well.
Best!