Initial syntax full conversion from JavaScript to Dart