add js snippet