This is a typical situation in jQuery:
$(\".myClass\").myFunction({ aKey: \'some value\' });
H
You can do :
main() { js.context.callMethod(r'$', ['.myClass']) .callMethod('myFunction', [new js.JsObject.jsify({'aKey': 'some value'})]); }