Add (f) snippet for javascript