Blog1009: How to Parse TLVs in JavaScript