Fixed index bug when opening nodes by using some underscore js magic to derive the absolute index positioning.