make sure type of property in nodesIndex is not a function, otherwise for example the id "watch" causes an exception in firefox