AMF decoding library in pure JavaScript