add js snippet `fs`