Using Dart/Polymer to re-write the program