code: function getNodeFromId(nodeId){
      var res = $.grep(gAllNodes, function(e) {
          return e._id === nodeId;
      });
      return res[0];
  }
docs: Function that will return the node from the id in parameter
  @param nodeId
  @returns {*}