Debug index js