add hierarchyOfNodes.js

Signed-off-by: arcticlion <david.malan@aol.com>
写一个检测节点类型和保存节点名的功能

Signed-off-by: arcticlion <david.malan@aol.com>
merge master and dev