A simple decision tree for NodeJS.