js index is ready