object nodes in javaScript