Initial commit of the Dart code which has been converted from the JavaScript code from 2012