Question: I have a process that identifies an object on an S3 bucket that must be converted using our (fairly simplistic) custom Java code. The output of this conversion is written to a different prefix on the S3 bucket. So it's a simple, isolated job:

1. Read the input stream of the S3 object
2. Convert the object
3. Write the output as a new S3 object or objects

This process is probably only a few thousands lines of data on the S3 object, but hundreds (maybe thousands) of objects. What is a good approach to running this process on several machines? It appears that I could use Kinesis, EMR, SWF, or something I cook up myself. Each approach has quite a learning curve. Where should I start?

Answer: 
First off your selectors are bad, you have 3 vars that are calling the same thing. Use this as a guideline for your selectors. **[jQuery Selectors](http://www.w3schools.com/jquery/jquery_ref_selectors.asp)** Also it will be helpful to know what is failing exactly, maybe paste some HTML so we can better help you. 

**Edit:** Try removing the block1 and block2 vars and see how it looks. With those selectors they are appending the photo and title info to the very first div. Try using the selector $(this) instead of block1 and block2.

**Edit2:** Ok so what is going on is your item.append(block1, block2); part is adding the blocks you create to the first div. 

**EDIT3:** You need to create a new div and add the new blocks to create the new "item" Something along the lines of item.append("< /div>< div>"+ photo + title + info+'< /div>')

**Edit 4:** Without knowing your html I can't really write any code for your situation I can only assume and guess.
where are you closing your elements? try with this code:

```
var item = $('<div/>');

$.each(data.results, function(i, res) {                    

    var photo = $('<div/>'),
        block1 = $('<div style="float: left;"></div>'),
        block2 = $('<div/>'),
        title = $('<h4/>'),
        info = $('<p/>');

    photo.html('<img src="xyz"/>');
    title.html('<hr/>'+res.name+','+res.country);
    info.html(res.comment_text);
    block1.append(photo); 
    block2.append(title, info);                   
    item.append(block1, block2);

});

$("#comments").html(item);

```