Expose Dart functions to Javascript code.