Allow implementation of Java interfaces using a javascript object holding
functions.