First draft of jsbeat.js and demo html file