I have created a tiny JavaScript code that encodes transaction data into raw transaction buffer and creates an Ed25519 signature to transfer (a.k.a. peer-to-peer transfer) testnet coins.
This is obviously a small test code which cannot be used in a production, but I hope it will help someone (especially who is trying to write a JS library) in a future.