Refitted with external JS

this version decouples html from JS (uses tweetenstein.js)