delete Confiug
added inheritance in javascript