An Interface Class for Javascript