Removed "pass on execute, fail on commit" test as the WP8 implementation notices and avoids the trick.  N.B. the fix still resolves the issue on Android so should fix it in the harder to test cases where it still can occur on any platform.
Updated generated javascript to match coffeescript