a  simple util to implement Interface patten in javascript.