For statement works on LeafJS

For statement works on LeafJS.