add js sample.