Note: the behavior3 lib does not support nodejs currently so there is an included version of it in the lib folder that works with node.
This is a simple behavior tree built off the example given in the great article by Chris Simpson on behavior trees here
Download the sample and run node app and you will get an output