Simple support for interfaces in JavaScript.