tests and JS impl for Ordinal Bytes