add js sample