Pushed line-by-line translation to JavaScript for_each_in