Updates to the engine to make the JS interface simpler.  Also added a new simple bot in the examples