JavaScript implementation of the examples in Mat Buckland's "Programming Game AI by Example"