I believe the line `elem.data("id", elem.attr("id") || "" + i)` coordinates to the index via `problemId = id` in `makeProblem` right below what is now the `else` statement. So it should still work (given commit 2).