adds the inheritance snippet for javascript