Add index js for spiking.