Fix order of callback arguments
Fix return value of ForEachScript()