Fix fori snippet js