Auto-coerce javascription functions to Java single-abstract-method implementations
(Runnable, etc).