A Javascript TLV library