Add sequential JavaScript and Dart versions.
Partition out the output function for the future. Add copyright statements.
Correct the mode of the output.dart file.
Partition off the output function for the future. Add a copyright statement.