Use JSON.encode instead of String interpolation

Fix for https://code.google.com/p/dart/issues/detail?id=16271

Examples were updated and .js files were recompiled with Dart 1.1.1 (they are quite smaller now).