An AMF library in JavaScript