use single quote in js snippet