Fix for engines that do not support generators

Because yield and function* are used in a script, script engines that do not support generators fails hard due to syntax errors. Separating the scripts make the engine parse each of the scrips individually and syntax errors in a certain script do not break the rest of the scripts.
Merge pull request #1 from phistuck/patch-1

Fix for engines that do not support generators