first js snippet