new index and splint js