akjs reference implementation