debug add to index js