Leverage doctest / manuel hooks to support other languages, such as JavaScript