add to index for static plots too (will be useful for js object selection)