Getting towards a working draft on the JavaScript side.
Pack draft done (I think).