Fixing javascript so that the last line gets updated correctly. We're deleting the DOM so we don't have access to this anymore after it's deleted. Storing the previous element in a var and then using that to update the row count