code: function makeSimpleBlock(data){
  		var flags = 0;
  		if (data.keyframe) flags |= 128;
  		if (data.invisible) flags |= 8;
  		if (data.lacing) flags |= (data.lacing << 1);
  		if (data.discardable) flags |= 1;
  		if (data.trackNum > 127) {
  			throw "TrackNumber > 127 not supported";
  		}
  		var out = [data.trackNum | 0x80, data.timecode >> 8, data.timecode & 0xff, flags].map(function(e){
  			return String.fromCharCode(e)
  		}).join('') + data.frame;
  
  		return out;
  	}
docs: woot, a function that's actually written for this project! this parses some json markup and makes it into that binary magic which can then get shoved into the matroska comtainer (peaceably)