WIP changing positionIndex to ID and javascript loading locally