JavaScript reference implementation for pffy idioms