Implementing interfaces on javascript using CheeseJS