get this js snippet in