inline expand javascript f snippet