jQuery: .each method pushing html ids into array