initial commit
add ids, remove img, add comments
register event listeners
implement half of updateFieldCount
trigger initial field count
finish layout and mutation
sex
fix layout
add button
add charset meta, hook button to js
add missing while loop
fix event dispatch incompatibility on IE
lifted code from SO
link