fix `f` js snippet