I am not sure if it's technically feasible or in the scope of choc to do but would be nice if there was a clean way to be able to stop JS scripts that are taking too long to run. Like if the end user writes a script like :
function generate_steps()
{
arr = [];
for (var i=0;i<900000000;++i)
{
if (i % 5 == 0 || i % 11 == 0)
arr.push(1.0);
else arr.push(-1.0);
}
return arr;
}