Use Array::map for plant
Better way of determining global object
Renamed baseBehavior -> element
Updated documentation