remove redundant data from XJSElement nodes