Stop scripts

Implemented StopScripts.

Issue WPFerg#13
`for…in` loops are much slower than `for` loops for arrays.