<body>
<input ...select a file... />
<button>Save me</button>
<div id="inputList">
<ul id="listOfBlocks">
...blocks...
</ul>
</div>
<div>
<button>Add block</button>
</div>
</body>
<li>
<button>Delete block</button>
...some fields...
Add Field subblock
</li>
<div class=addfield>
<button>Add field</button>
<input ...for name of the field...>
<input ...for value of the field...>
</div>
<input ...> // name, value