add js inheritance sample.