for define and check implementation of interface javascript