Styling: please be consistent to indentation and spacing

Note I prefer indenting by 2 spaces because it's easier to read. You may prefer 4.
But the rest of the changes should make sense to you
remove xmlns. we are using html5
Change id to class. Only use 'id' attribute for unique elements

Avoid cloning elements with 'id'. Alternatively, you should reset the 'id' attribute after cloning
Display table rows in the same order from the JSON input

Please note I'm using append instead of insertAfter.
This is in general a better way of adding new elements to a container
Hide #template row because we should . Note the name change