I think you can just use .append() here rather than using a loop variable like ii.