Convert sugarcube for loops to JS.

Also did a little bit of reformatting. Making the second part properly JS certainly helps with the speed or maybe it's just placebo.

Edited by Blank

Merge request reports

Loading