Cleaning index js