Use Handlebars.js for templating instead of String concatenation
prepare output formats to be rendered through handlebars too
Move the form processing onto Javascript
Add saveAs() for local storage of the files directly from the page
remove unnecessary result element
modify templates, so the additional linebreaks caused by {{each}} do not hurt as much...
Move HTML Page to be standalone, so Ruby parts can be removed
remove ruby application, now that it is unnecessary
reformatted application.js