Fixed issue with gameover not resetting score/difficulty thresholds.
Updated javascript converter to use local function variables when converting for-each loops.
Merge pull request #15 from DanielJCampbell/master

Fixed that issue with the way converting for-each loops was implemented.